import Vue from 'vue'
import App from './App.vue'
import mix from './mixins'
import LazyLoad from 'vue-lazyload'


Vue.use(LazyLoad, {
  // 图片错误的时候要加载的
  error: "https://img2.baidu.com/it/u=2872381639,1807272907&fm=253&fmt=auto&app=138&f=PNG?w=444&h=409",
  // 加载中
  loading: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F0196fa582abab6a84a0d304f899eaf.gif&refer=http%3A%2F%2Fimg.zcool.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1647155557&t=d96abd57c1984ee16bc8d88d8986e363"
})

// Vue.mixin(mix)

// 全局自定义指令
// Vue.directive('aaa', () => {
//   console.log('aa')
// })

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
}).$mount('#app')
